cmake_minimum_required(VERSION 3.23)
project(CppTest-Windows)

#https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170

set(CMAKE_CXX_STANDARD 20)

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

add_definitions(-DUNICODE -D_UNICODE)

add_executable(Win32_ChildWindow WIN32 ChildWindow.cpp)

add_executable(registry registry.cpp)